package com.hnluchuan.bmjlearning.common;

/**
 * 代理商 状态，0禁用，1启用
 */
public enum AgentStatus {
    // 请根据实际情况改成对应的值和备注
	Disabled(0, "已禁用"),
	Enabled(1, "已启用");
    
    private int value;
    private String remark;
    
    AgentStatus(int value, String remark) {
    	this.value = value;
    	this.remark = remark;
    }
    
    public int getValue() {
    	return value;
    }
    public String getRemark() {
    	return remark;
    }
    
    public static AgentStatus getByValue(int value) {
    	for (AgentStatus o : AgentStatus.values()) {
    		if (o.getValue() == value) {
    			return o;
    		}
    	}
    	return null;
    }
}
